import request from "@/utils/request";

// 查询消息推送列表
export function wxMessageTemplatePage(query) {
  return request({
    url: "/wxMessageTemplate/page",
    method: "get",
    params: query,
  });
}

// 批量删除
export function wxMessageTemplateDelAll(enterpriseIds) {
  return request({
    url: "/wxMessageTemplate/" + enterpriseIds,
    method: "delete",
  });
}

// 新增
export function wxMessageTemplateAdd(data) {
  return request({
    url: "/wxMessageTemplate",
    method: "post",
    data: data,
  });
}

// 编辑
export function wxMessageTemplateEdit(data) {
  return request({
    url: "/wxMessageTemplate",
    method: "put",
    data: data,
  });
}

// 详情
export function wxMessageTemplateDetails(enterpriseId) {
  return request({
    url: "/wxMessageTemplate/" + enterpriseId,
    method: "get"
  });
}
